<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="utf-8" />
    <title>引入外部js文件</title>
    <script src="js/index.js"></script>
    <script>
        console.log("hello前端");
    </script>
</head>

<body>
</body>

</html>